export default {
    state: {
        arr: [],
    },
    mutations: {
        lsjl(state, car) {
            var b = true
            state.arr.forEach(i => {
                if (i.name == car.name) {
                    b = false
                    console.log(i.name);
                    console.log(car.name);
                }
            });
            if (b == true) {
                state.arr.push(car)
            }
        },
        qk(state) {
            state.arr = []
        }
    }
}